<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Abnormal extends Model
{
    /**
     * @var array
     */
    protected $fillable = ['ab_code', 'at_code', 'title'];
    protected $table = 'abnormal';

    public function abnormalType()
    {
        return $this->hasOne(AbnormalType::class,'at_code','at_code');
    }
}
